package test_pack;

import java.util.LinkedList;
import java.util.List;

import org.junit.Test;

import Proj_pack.Maschen;
import Proj_pack.Mash;
import Proj_pack.netz2135;

public class res_comp {

	@Test
	public void testMain() {
//		String file = new String("/home/govinda/uni/NP/projekt/testsuite/speed/graph07.xml");
		String file = new String("/home/govinda/uni/NP/projekt/testsuite/crack/germany.xml");
		String[] seq = new String[]{file, "1"};
		String[] conc = new String[]{file, "500"};
//		seq maschen
		Proj_pack.netz2135 netz_seq = new netz2135();
		netz2135.main(seq);
		Maschen maschen_seq = netz_seq.getMaschen();
		//conc maschen
		Proj_pack.netz2135 netz_conc = new netz2135();
		netz2135.main(conc);
		Maschen maschen_conc = netz_conc.getMaschen();
		List<Mash> concList = new LinkedList<Mash>(maschen_conc.getMaschen());
//		for(Mash m:maschen_seq.getMaschen()){
			concList.removeAll(maschen_seq.getMaschen());
			System.out.println("falsche Mashs: " + concList);
//		}
	}

}
